package com.itheima.logdemo.user;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
@RestController
@ComponentScan("com.itheima.logdemo")
// @Import(com.itheima.logdemo.hystrix.WormholeHystrixAutoConfiguration.class)
@Import(com.itheima.logdemo.hystrix.HystrixAutoConfiguration.class)
@EnableCircuitBreaker
public class UserApp {
    public static void main(String[] args) {
        new SpringApplicationBuilder(UserApp.class).run(args);
        //    
    }
}
